$(document).ready(
        $('#login').click(function () {
    $.ajax({
        url: "manager/Login",
        type: "POST",
        data: {
            username: $('#username').val(),
            password: $('#password').val()
        },
        success: function (resp) {
            if (resp.code === 200) {
                window.location.href = "user_administrator.jsp";
            } else {
                alert("用户名或密码错误");
            }
        },
        error: function (req, status, error) {
            alert("异常，错误信息：" + error);
        }
    });
})
        );

layui.use('form', function () {
    var form = layui.form;
})